import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "./SeqIntHelper";
import { SEntityId } from "./SEntityId";
type int = number;
//class SArenaCrossFinalBattle
    
    export  class SArenaCrossFinalBattle
    {
       

        public __write(arg1: SerializeStream): void
        {
            SeqIntHelper.write(arg1, this.positions);
            this.entityId.__write(arg1);
            arg1.writeString(this.name);
            arg1.writeByte(this.sex);
            arg1.writeByte(this.camp);
            arg1.writeShort(this.career);
            arg1.writeByte(this.avatarId);
            arg1.writeInt(this.arenaId);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.positions = SeqIntHelper.read(arg1);
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.name = arg1.readString();
            this.sex = arg1.readByte();
            this.camp = arg1.readByte();
            this.career = arg1.readShort();
            this.avatarId = arg1.readByte();
            this.arenaId = arg1.readInt();
            return;
        }

        public /* var */positions: Array<any>;

        public /* var */entityId: SEntityId;

        public /* var */name: string;

        public /* var */sex: int;

        public /* var */camp: int;

        public /* var */career: int;

        public /* var */avatarId: int;

        public /* var */arenaId: int;
    }
